package com.example.demo_news.Repository;

import com.example.demo_news.entity.MyUser;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface UserPepository extends JpaRepository<MyUser,Integer>{
    public MyUser findUserById(Integer id);
    //根据唯一标识查找用户
    public MyUser findUserByusername(String username);
    //根据用户名查询用户
}
